package com.mall.application.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author wuyijie
 * @since 2021-06-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "application")
@ApiModel(value = "Application对象", description = "")
public class ApplicationPO extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "应用名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "应用的联系email")
    @TableField("CONTACT_EMAIL")
    private String contactEmail;

    @ApiModelProperty(value = "服务调用KEY")
    @TableField("ACCESS_KEY")
    private String accessKey;
    @ApiModelProperty(value = "服务调用SECRET")
    @TableField("ACCESS_SECRET")
    private String accessSecret;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "状态。0 已删除，1 在用，2 暂停，3 关闭")
    @TableField("STATUS")
    private Integer status;


}
